#include "addclass.h"
#include "ui_addclass.h"

AddClass::AddClass(QWidget* parent)
    : QDialog(parent)
    , ui(new Ui::AddClass)
{
    ui->setupUi(this);
    connect(ui->pushButton, &QPushButton::clicked, this, [=]() {
        m_className = ui->AddClassComboBox->currentText();
        accept();
    });
}

AddClass::~AddClass()
{
    delete ui;
}
